<html>
    <head>
        <title><?php echo $this->lang->line("page_accept"); ?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="UTF-8"/>
        <link href="<?php echo STATIC_URL.'/backend/css/bootstrap.min.css';?>" rel="stylesheet">
        <link href="<?php echo STATIC_URL.'/backend/css/receipt.css';?>" rel="stylesheet">
        <script type="text/javascript" src="<?php echo base_url();?>third_party/jquery/jquery-1.8.2.min.js"></script>
        <script>
            function myFunction() {
                $("#print").hide();
                $("#cancel").hide();
                window.print();
                parent.jQuery.fancybox.close();
            }
            function closeFancy(){
                parent.jQuery.fancybox.close();
            }
        </script>
    </head>
    <body>
        <!--header-->
        <header class="navbar-fixed-top">
            <div class="container">
                <div class="row">
                        <div class="col-md-2" id="top-left">
                                  <div class="row">
                                      <div class="col-xs-5"><strong><?php echo $configuration[1]->value;?></strong></div>
                                      <div class="col-xs-4"><h3><?php echo $this->lang->line("receipt");?></h3> Số: <?php echo $info->id;?></div>
                                      <div class="col-xs-3" style="font-weight: bold;"><?php echo $this->lang->line('mau-01');?></div>
                                  </div>

                                  <div class="row">
                                      <div class="col-xs-5" style="line-height: 0px;"><strong><?php echo $configuration[2]->value.'<div style="padding-top:17px">Điện thoại: '.$configuration[3]->value.' - Fax: '.$configuration[0]->value.'</div>';?></strong></div>
                                      <div class="col-xs-3"><?php echo $this->lang->line('day');?> <?php echo date("d",time());?> <?php echo $this->lang->line('month');?> <?php echo date("m",time());?> <?php echo $this->lang->line('year');?> <?php echo date("Y",time());?></div>
                                      <div class="col-xs-4" style="text-align: center;"><?php echo $this->lang->line('mau-01-quydinh');?></div>
                                  </div>
                        </div>
                </div>
            </div>
        </header>
        <!--header-->
        <!--<figure>--->
        <?php
        //getInfoTicketByParams
        if($info->payment_method == 2){
            $ticket_phone = $this->bookhistory_model->getInfoTicketByParams($info->booking_id);
            $phone = '- '.$ticket_phone[0]->phone;
        } else {
            $phone = '';
        }
        ?>
        <figure>
            <div class="container">
                <div class="margin"></div>
                <div class="row">
                    <div class="container-fluid">
                        <p><label><?php echo $this->lang->line('ho_ten_nop');?>:</label> <?php echo (isset($info['name']))?$info['name']:''?> <?php echo $phone;?></p>
                        <p><label><?php echo $this->lang->line('address');?>:</label> <?php echo $info['address'];?></p>
                        <p><label><?php echo $this->lang->line('reason');?>:</label> <?php echo $this->lang->line('payment_ticket_airline');?></p>
                        <p><label><?php echo $this->lang->line('amount');?>:</label> <?php echo $this->bookinglib->my_number_format($info['sale_fare'],2, ',', ',');?> <?php echo $this->lang->line('VND');?></p>
                        <p><label><?php echo $this->lang->line('by_write');?>:</label> <?php echo $this->bookinglib->convertCachToText($info['sale_fare']);?></p>
                        <p><label><?php echo $this->lang->line('booking_place_code');?>:</label> <?php echo $info['pnr'];?></p>
                    </div>
                </div>
                <div class="row" style="padding-right: 40px;"><p class="text-right"><em><?php echo $this->lang->line('day');?> <?php echo date("d",time());?> <?php echo $this->lang->line('month');?> <?php echo date("m",time());?> <?php echo $this->lang->line('year');?> <?php echo date("Y",time());?></em></p></div>
                <div class="row" id="chuky">
                    <div class="col-xs-3"><?php echo $this->lang->line("nguoi_lap_phieu");?></div>
                    <div class="col-xs-3"><?php echo $this->lang->line("nguoi_nop_tien");?></div>
                    <div class="col-xs-3"><?php echo $this->lang->line("thu_quy");?></div>
                    <div class="col-xs-3"><?php echo $this->lang->line("giam_doc");?></div>
                </div>
                <div class="row" id="chuky">
                    <div class="col-xs-3 kyten"><em><?php echo $this->lang->line('kiten');?></em></div>
                    <div class="col-xs-3 kyten"><em><?php echo $this->lang->line('kiten');?></em></div>
                    <div class="col-xs-3 kyten"><em><?php echo $this->lang->line('kiten');?></em></div>
                    <div class="col-xs-3 kyten"><em><?php echo $this->lang->line('kiten');?></em></div>
                </div>
                <div class="margin"></div>
            </div>
            <br/>
            <div class="red">
                <span class="sign_left">
                    <?php echo $info['booker']; ?>
                </span>
                <span>NGUYỄN THỊ QUYÊN PHƯƠNG</span>
            </div>
        </figure>
        <!--<figure>--->
        <!--footer-->
        <footer>
            <p><?php echo $this->lang->line("nhan_du_tien_chu");?>: <?php echo $this->bookinglib->convertCachToText($info['sale_fare']);?></p>
            <p><?php echo $this->lang->line("ty_gia_vang");?>:</p>
            <p><?php echo $this->lang->line('amount');?> quy đổi:</p>
            <p><?php echo $this->lang->line('lien_out');?></p>
        </footer>
        <!--footer-->
        <!--- page 2-->
        <header class="navbar-fixed-top">
            <div class="container">
                <div class="row">
                        <div class="col-md-2" id="top-left">
                                  <div class="row">
                                      <div class="col-xs-5"><strong><?php echo $configuration[1]->value;?></strong></div>
                                      <div class="col-xs-4"><h3><?php echo $this->lang->line("receipt");?></h3> Số: <?php echo $info->id;?></div>
                                      <div class="col-xs-3" style="font-weight: bold;"><?php echo $this->lang->line('mau-01');?></div>
                                  </div>

                                  <div class="row">
                                      <div class="col-xs-5" style="line-height: 0px;"><strong><?php echo $configuration[2]->value.'<div style="padding-top:17px">Điện thoại: '.$configuration[3]->value.' - Fax: '.$configuration[0]->value.'</div>';?></strong></div>
                                      <div class="col-xs-3"><?php echo $this->lang->line('day');?> <?php echo date("d",time());?> <?php echo $this->lang->line('month');?> <?php echo date("m",time());?> <?php echo $this->lang->line('year');?> <?php echo date("Y",time());?></div>
                                      <div class="col-xs-4" style="text-align: center;"><?php echo $this->lang->line('mau-01-quydinh');?></div>
                                  </div>
                        </div>
                </div>
            </div>
        </header>
        <!--header-->
        <!--<figure>--->
        <figure>
            <div class="container">
                <div class="margin"></div>
                <div class="row">
                    <div class="container-fluid">
                        <p><label><?php echo $this->lang->line('ho_ten_nop');?>:</label> <?php echo (isset($info['name']))?$info['name']:''?> <?php echo $phone;?></p>
                        <p><label><?php echo $this->lang->line('address');?>:</label> <?php echo $info['address'];?></p>
                        <p><label><?php echo $this->lang->line('reason');?>:</label> <?php echo $this->lang->line('payment_ticket_airline');?></p>
                        <p><label><?php echo $this->lang->line('amount');?>:</label> <?php echo $this->bookinglib->my_number_format($info['sale_fare'],2, ',', ',');?> <?php echo $this->lang->line('VND');?></p>
                        <p><label><?php echo $this->lang->line('by_write');?>:</label> <?php echo $this->bookinglib->convertCachToText($info['sale_fare']);?></p>
                        <p><label><?php echo $this->lang->line('booking_place_code');?>:</label> <?php echo $info['pnr'];?></p>
                    </div>
                </div>
                <div class="row" style="padding-right: 40px;"><p class="text-right"><em><?php echo $this->lang->line('day');?> <?php echo date("d",time());?> <?php echo $this->lang->line('month');?> <?php echo date("m",time());?> <?php echo $this->lang->line('year');?> <?php echo date("Y",time());?></em></p></div>
                <div class="row" id="chuky">
                    <div class="col-xs-3"><?php echo $this->lang->line("nguoi_lap_phieu");?></div>
                    <div class="col-xs-3"><?php echo $this->lang->line("nguoi_nop_tien");?></div>
                    <div class="col-xs-3"><?php echo $this->lang->line("thu_quy");?></div>
                    <div class="col-xs-3"><?php echo $this->lang->line("giam_doc");?></div>
                </div>
                <div class="row" id="chuky">
                    <div class="col-xs-3 kyten"><em><?php echo $this->lang->line('kiten');?></em></div>
                    <div class="col-xs-3 kyten"><em><?php echo $this->lang->line('kiten');?></em></div>
                    <div class="col-xs-3 kyten"><em><?php echo $this->lang->line('kiten');?></em></div>
                    <div class="col-xs-3 kyten"><em><?php echo $this->lang->line('kiten');?></em></div>
                </div>
                <div class="margin"></div>
            </div>
            <br/>
            <div class="red">
                <span class="sign_left">
                    <?php echo $info['booker']; ?>
                </span>
                <span>NGUYỄN THỊ QUYÊN PHƯƠNG</span>
            </div>
        </figure>
        <!--<figure>--->
        <!--footer-->
        <footer>
            <p><?php echo $this->lang->line("nhan_du_tien_chu");?>: <?php echo $this->bookinglib->convertCachToText($info['sale_fare']);?></p>
            <p><?php echo $this->lang->line("ty_gia_vang");?>:</p>
            <p><?php echo $this->lang->line('amount');?> quy đổi:</p>
            <p><?php echo $this->lang->line('lien_out');?></p>
            <p style="text-align: center;">
                <?php echo form_button(array('id' => 'print', 'content' => $this->lang->line('bill_print'),'class' => 'btn btn-primary','onclick'=>'myFunction()'));?>
                <?php echo form_button(array('id' => 'cancel','content' => $this->lang->line('close'),'class' => 'btn btn-danger','onclick'=>'closeFancy()')); ?>
            </p>
        </footer>
        <!--footer-->
        
    </body>
</html>

